<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<!--  -->
<body>
    <div id="app">
        {{msg}}
    </div>

    <div id="root">
        {{msg}}
    </div>
    <script src="js/vue.js"></script>

    <script>
        // 创建 vue 实例1
        const app = Vue.createApp({
            data(){
                return {
                    msg:'app'
                }
            }
        }).mount("#app");
        
        // 创建 vue 实例2
        const root = Vue.createApp({
            data(){
                return {
                    msg:'root'
                }
            }
        }).mount("#root");
        
    </script>
</body>
</html>